package com.smh.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smh.mp.domain.dto.PageDTO;
import com.smh.mp.domain.po.User;
import com.smh.mp.domain.query.UserQuery;
import com.smh.mp.domain.vo.UserVO;

import java.util.List;

public interface UserService extends IService<User> {
    void reduceMoneyById(Long id, Integer money);

    List<UserVO> queryUsers(String name, Integer status, Integer maxBalance, Integer minBalance);

    UserVO queryUserAndAddressById(Long id);

    List<UserVO> queryUserAndAddressByIds(List<Long> ids);

    PageDTO<UserVO> pageQueryUsers(UserQuery userQuery);
}
